package com.dap.test;


import com.dap.dubbo.service.HelloService;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AppCustomer {

    private HelloService helloService;
    @Before
    public void before() {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[]{"dubbo-client.xml"});
        helloService = (HelloService) context.getBean("helloService", HelloService.class);
    }

    @Test
    public void test() {

        System.out.println("resultV==" + helloService.sayHello("hello world"));
    }





}
